{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport { resetComponent, textEllipsis } from '../../style';\n// ============================== Shared ==============================\nvar genSharedAnchorStyle = function genSharedAnchorStyle(token) {\n  var _$concat2, _Object$assign, _$concat3;\n  var componentCls = token.componentCls,\n    holderOffsetBlock = token.holderOffsetBlock,\n    motionDurationSlow = token.motionDurationSlow,\n    lineWidthBold = token.lineWidthBold,\n    colorPrimary = token.colorPrimary;\n  return _defineProperty({}, \"\".concat(componentCls, \"-wrapper\"), (_$concat3 = {\n    marginBlockStart: -holderOffsetBlock,\n    paddingBlockStart: holderOffsetBlock,\n    // delete overflow: auto\n    // overflow: 'auto',\n    backgroundColor: 'transparent'\n  }, _defineProperty(_$concat3, componentCls, Object.assign(Object.assign({}, resetComponent(token)), (_Object$assign = {\n    position: 'relative',\n    paddingInlineStart: lineWidthBold\n  }, _defineProperty(_Object$assign, \"\".concat(componentCls, \"-ink\"), {\n    position: 'absolute',\n    insetBlockStart: 0,\n    insetInlineStart: 0,\n    height: '100%',\n    '&::before': {\n      position: 'relative',\n      display: 'block',\n      width: lineWidthBold,\n      height: '100%',\n      margin: '0 auto',\n      backgroundColor: token.colorSplit,\n      content: '\" \"'\n    }\n  }), _defineProperty(_Object$assign, \"\".concat(componentCls, \"-ink-ball\"), _defineProperty({\n    position: 'absolute',\n    left: {\n      _skip_check_: true,\n      value: 0\n    },\n    display: 'none',\n    transform: 'translateY(-50%)',\n    transition: \"top \".concat(motionDurationSlow, \" ease-in-out\"),\n    width: lineWidthBold,\n    backgroundColor: colorPrimary\n  }, \"&\".concat(componentCls, \"-ink-ball-visible\"), {\n    display: 'inline-block'\n  })), _defineProperty(_Object$assign, \"\".concat(componentCls, \"-link\"), (_$concat2 = {\n    paddingBlock: token.anchorPaddingBlock,\n    paddingInline: \"\".concat(token.anchorPaddingInline, \"px 0\"),\n    '&-title': Object.assign(Object.assign({}, textEllipsis), {\n      position: 'relative',\n      display: 'block',\n      marginBlockEnd: token.anchorTitleBlock,\n      color: token.colorText,\n      transition: \"all \".concat(token.motionDurationSlow),\n      '&:only-child': {\n        marginBlockEnd: 0\n      }\n    })\n  }, _defineProperty(_$concat2, \"&-active > \".concat(componentCls, \"-link-title\"), {\n    color: token.colorPrimary\n  }), _defineProperty(_$concat2, \"\".concat(componentCls, \"-link\"), {\n    paddingBlock: token.anchorPaddingBlockSecondary\n  }), _$concat2)), _Object$assign))), _defineProperty(_$concat3, \"\".concat(componentCls, \"-fixed \").concat(componentCls, \"-ink \").concat(componentCls, \"-ink-ball\"), {\n    display: 'none'\n  }), _$concat3));\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Anchor', function (token) {\n  var fontSize = token.fontSize,\n    fontSizeLG = token.fontSizeLG,\n    padding = token.padding,\n    paddingXXS = token.paddingXXS;\n  var anchorToken = mergeToken(token, {\n    holderOffsetBlock: paddingXXS,\n    anchorPaddingBlock: paddingXXS,\n    anchorPaddingBlockSecondary: paddingXXS / 2,\n    anchorPaddingInline: padding,\n    anchorTitleBlock: fontSize / 14 * 3,\n    anchorBallSize: fontSizeLG / 2\n  });\n  return [genSharedAnchorStyle(anchorToken)];\n});","map":{"version":3,"names":["genComponentStyleHook","mergeToken","resetComponent","textEllipsis","genSharedAnchorStyle","token","componentCls","holderOffsetBlock","motionDurationSlow","lineWidthBold","colorPrimary","marginBlockStart","paddingBlockStart","backgroundColor","Object","assign","position","paddingInlineStart","insetBlockStart","insetInlineStart","height","display","width","margin","colorSplit","content","left","_skip_check_","value","transform","transition","paddingBlock","anchorPaddingBlock","paddingInline","anchorPaddingInline","marginBlockEnd","anchorTitleBlock","color","colorText","anchorPaddingBlockSecondary","fontSize","fontSizeLG","padding","paddingXXS","anchorToken","anchorBallSize"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/anchor/style/index.js"],"sourcesContent":["import { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport { resetComponent, textEllipsis } from '../../style';\n// ============================== Shared ==============================\nconst genSharedAnchorStyle = token => {\n  const {\n    componentCls,\n    holderOffsetBlock,\n    motionDurationSlow,\n    lineWidthBold,\n    colorPrimary\n  } = token;\n  return {\n    [`${componentCls}-wrapper`]: {\n      marginBlockStart: -holderOffsetBlock,\n      paddingBlockStart: holderOffsetBlock,\n      // delete overflow: auto\n      // overflow: 'auto',\n      backgroundColor: 'transparent',\n      [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n        position: 'relative',\n        paddingInlineStart: lineWidthBold,\n        [`${componentCls}-ink`]: {\n          position: 'absolute',\n          insetBlockStart: 0,\n          insetInlineStart: 0,\n          height: '100%',\n          '&::before': {\n            position: 'relative',\n            display: 'block',\n            width: lineWidthBold,\n            height: '100%',\n            margin: '0 auto',\n            backgroundColor: token.colorSplit,\n            content: '\" \"'\n          }\n        },\n        [`${componentCls}-ink-ball`]: {\n          position: 'absolute',\n          left: {\n            _skip_check_: true,\n            value: 0\n          },\n          display: 'none',\n          transform: 'translateY(-50%)',\n          transition: `top ${motionDurationSlow} ease-in-out`,\n          width: lineWidthBold,\n          backgroundColor: colorPrimary,\n          [`&${componentCls}-ink-ball-visible`]: {\n            display: 'inline-block'\n          }\n        },\n        [`${componentCls}-link`]: {\n          paddingBlock: token.anchorPaddingBlock,\n          paddingInline: `${token.anchorPaddingInline}px 0`,\n          '&-title': Object.assign(Object.assign({}, textEllipsis), {\n            position: 'relative',\n            display: 'block',\n            marginBlockEnd: token.anchorTitleBlock,\n            color: token.colorText,\n            transition: `all ${token.motionDurationSlow}`,\n            '&:only-child': {\n              marginBlockEnd: 0\n            }\n          }),\n          [`&-active > ${componentCls}-link-title`]: {\n            color: token.colorPrimary\n          },\n          // link link\n          [`${componentCls}-link`]: {\n            paddingBlock: token.anchorPaddingBlockSecondary\n          }\n        }\n      }),\n      [`${componentCls}-fixed ${componentCls}-ink ${componentCls}-ink-ball`]: {\n        display: 'none'\n      }\n    }\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Anchor', token => {\n  const {\n    fontSize,\n    fontSizeLG,\n    padding,\n    paddingXXS\n  } = token;\n  const anchorToken = mergeToken(token, {\n    holderOffsetBlock: paddingXXS,\n    anchorPaddingBlock: paddingXXS,\n    anchorPaddingBlockSecondary: paddingXXS / 2,\n    anchorPaddingInline: padding,\n    anchorTitleBlock: fontSize / 14 * 3,\n    anchorBallSize: fontSizeLG / 2\n  });\n  return [genSharedAnchorStyle(anchorToken)];\n});"],"mappings":";AAAA,SAASA,qBAAqB,EAAEC,UAAU,QAAQ,sBAAsB;AACxE,SAASC,cAAc,EAAEC,YAAY,QAAQ,aAAa;AAC1D;AACA,IAAMC,oBAAoB,GAAG,SAAvBA,oBAAoB,CAAGC,KAAK,EAAI;EAAA;EACpC,IACEC,YAAY,GAKVD,KAAK,CALPC,YAAY;IACZC,iBAAiB,GAIfF,KAAK,CAJPE,iBAAiB;IACjBC,kBAAkB,GAGhBH,KAAK,CAHPG,kBAAkB;IAClBC,aAAa,GAEXJ,KAAK,CAFPI,aAAa;IACbC,YAAY,GACVL,KAAK,CADPK,YAAY;EAEd,qCACMJ,YAAY;IACdK,gBAAgB,EAAE,CAACJ,iBAAiB;IACpCK,iBAAiB,EAAEL,iBAAiB;IACpC;IACA;IACAM,eAAe,EAAE;EAAa,8BAC7BP,YAAY,EAAGQ,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEb,cAAc,CAACG,KAAK,CAAC,CAAC;IACpEW,QAAQ,EAAE,UAAU;IACpBC,kBAAkB,EAAER;EAAa,6CAC7BH,YAAY,WAAS;IACvBU,QAAQ,EAAE,UAAU;IACpBE,eAAe,EAAE,CAAC;IAClBC,gBAAgB,EAAE,CAAC;IACnBC,MAAM,EAAE,MAAM;IACd,WAAW,EAAE;MACXJ,QAAQ,EAAE,UAAU;MACpBK,OAAO,EAAE,OAA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